<script setup>
import { inject } from 'vue'

const rgbColor = inject('rgbColor')
const msg = inject('message')
</script>

<template>
  <h4>LevelC 组件</h4>
  <p>{{ rgbColor }}</p>
  <p>{{ msg }}</p>
  <div class="box"></div>
</template>

<style scoped>
.box {
  width: 100px;
  height: 100px;
  border-radius: 5px;
  background-color: v-bind(rgbColor);
}
</style>
